package com.charlee.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author charlee
 * @date 2018/6/30 23:06
 */
@RestController
public class JenkinsController {

    @GetMapping("")
    public String hello() {
        return "Hello world!";
    }

    @GetMapping("/{username}")
    public String hello(@PathVariable String username){
        return "Hello, " + username;
    }
}
